package directory;

import generator.service.PropertiesService;
import directory.bean.FormDefinition;
import directory.process.FormParser;
import directory.process.Generator;
import directory.utils.DirectoryConstants;


public class FormEngineTool
{
    public static void run( )
    {
        PropertiesService.init( );

        String fileXml = PropertiesService.getProperty( DirectoryConstants.DIRECTORY_XML_FILE );

        FormDefinition form = FormParser.parse( fileXml );
        Generator.generate( form );
    }
}
